﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.wdx
{   
    /// <summary>
    /// 签约设备绑定表
    /// </summary>
    [SugarTable("SignDeviceBind")]
    public class SignDeviceBind : Audit
    {
        /// <summary>
        /// 主键 ，设备表唯一标识
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 绑定设备Id
        /// </summary>
        public int Device_Id { get; set; }

        /// <summary>
        /// 患者id（外键）
        /// </summary>

        public int Patient_Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Device_Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public long? Device_Code { get; set; }

        /// <summary>
        /// 型号
        /// </summary>
        public string? Device_Model { get; set; }

        /// <summary>
        /// SN
        /// </summary>
        public string? Device_SN { get; set; }

        /// <summary>
        /// 绑定状态   0解绑  1在绑
        /// </summary>
        public int Bind_Status { get; set; } = 1;

        /// <summary>
        /// 绑定时间
        /// </summary>
        public DateTime Bind_Time {  get; set; }=DateTime.Now;
    }
}
